package com.xiaocq.todo.components;

import android.net.Uri;
import android.provider.BaseColumns;

public class TodoMeta {
	/* this class can not be instanced. */
	private TodoMeta() {
	};

	/* the authority of this project. */
	public static final String AUTHORITY = "com.xiaocq.todo.provider.Todo";

	public static final class TableMeta implements BaseColumns {
		/* the content uri of the project. */
		public static final Uri CONTENT_URI = Uri.parse("content://"
				+ AUTHORITY + "/todos");

		/* the MIME type of providing a directory of tips */
		public static final String CONTENT_TYPE = "vnd.android.cursor.dir/vnd.xiaocq.todos";

		/* the MIME type of a sub-directory of a single item */
		public static final String CONTENT_ITEM_TYPE = "vnd.android.cursor.item/vnd.xiaocq.todo";

		/* the default sort order of the items in the list */
		public static final String DEFAULT_SORT_ORDER = "start_time ASC";
		
		/*define the column's name and index*/
		public static final String TITLE = "title";
		public static final int TITLE_INDEX = 1;
		
		public static final String TIP_DATE = "tip_date";
		public static final int TIP_DATE_INDEX = 2;
		
		public static final String START_TIME = "start_time";
		public static final int START_TIME_INDEX = 3;
		
		public static final String FINISH_TIME = "finish_time";
		public static final int FINISH_TIME_INDEX = 4;
		
		public static final String ISALARM = "is_alarm";
		public static final int ISALARM_INDEX = 5;
		
		
	}

}
